from Base import Base
from selenium.webdriver.common.by import By

class Page2(Base):
    input = (By.ID,'query')

    def input_loc(self):
        self.send_keys(self.input,'软件测试自动化')

    dian = (By.ID,'stb')

    def dian_loc(self):
        self.click(self.dian)

    dy = (By.ID,'wrapper')

    def dy_loc(self):
        return self.text(self.dy)

    two = (By.ID,'sogou_page_2')

    def two_loc(self):
        self.click(self.two)

    dy1 = (By.XPATH,'//*[@id="main"]/div[2]/div')
    def dy1_loc(self):
        return self.text(self.dy1)